
<div class="head-divide">
    <div class="head-dividetext">
        <ul>
            <li>
                <span  aria-hidden="true">
                    <image class="trackicon" src="image/track.png" ></image>您的历史足迹：
                </span>
              <span ng-repeat="pagelist in pageList  |limitTo:5">
                  <a ng-href="{{pagelist.url}}">{{pagelist.name}}&nbsp;&nbsp;></a>
              </span>
                 <span ng-repeat="pagelist in pageList" ng-if="$last">
                  <a ng-href="{{pagelist.url}}">{{pagelist.name}}</a>
              </span>
            </li>
        </ul>

    </div>
</div>
<div class="allorder">
    <ul class="menu_tab nav nav-tabs">
        <li class="active" ng-click="statusFilter()">
            <a href="" data-toggle="tab">
                全部广告
            </a>
        </li>
        <li ng-click="statusFilter(0)">
            <a href="" data-toggle="tab">
                未投放
            </a>
        </li>
        <li ng-click="statusFilter(7)">
            <a href="" data-toggle="tab">
                待审核<span style="font-size: 12px">（已投放）</span>
            </a>
        </li>
        <li ng-click="statusFilter(2)">
            <a href="" data-toggle="tab">
                未发布<span style="font-size: 12px">（已审核）</span>
            </a>
        </li>
        <li ng-click="statusFilter(1)">
            <a href="" data-toggle="tab">
                发布中<span style="font-size: 12px">（已审核）</span>
            </a>
        </li>
        <li ng-click="statusFilter(3)">
            <a href="" data-toggle="tab">
                已过期<span style="font-size: 12px">（已发布）</span>
            </a>
        </li>
        <li ng-click="statusFilter(5)">
            <a href="" data-toggle="tab">
                审批失败
            </a>
        </li>
    </ul>
    <div class="ordercontent">
        <div class="row">
          <ul class="order-item adv-item">
              <div class="col-md-2"><li>广告类型</li></div>
              <div class="col-md-2"><li>广告名称</li></div>
              <div class="col-md-2"><li>创建时间</li></div>
              <div class="col-md-3"> <li>简介</li></div>
          </ul>
        <div class="row">
         <div class="order-detail" dir-paginate="adv in advList| filter:adv| filter:q | itemsPerPage: pageSize"
             current-page="currentPage">

            <div class="order-detail1">
                <div class="order-number col-md-8">广告编号：{{adv.aId}}</div>
                <div class="order-statu col-md-4">
                    <a href="#"><span ng-show="adv.aProcess==0" class="order-statu2">去投放</span></a>
                    <a href=""><span ng-show="adv.aProcess!=0&&adv.aProcess!=1&&adv.aProcess!=2"
                             class="order-statu2">再次投放</span></a>
                </div>
            </div>
             <div class="row">
              <ul class="adv-detail-context">
                <li>
                    <div class="col-md-2">
                      <span>{{adv.aType|adtypefilter}}</span>
                    </div>
                    <div class="col-md-2">
                      <span>{{adv.aName}}</span>
                    </div>
                    <div class="col-md-2">
                      <span>{{adv.aCreatetime | date:'yyyy-MM-dd hh:mm:ss'}}</span>
                    </div>
                    <div class="col-md-3">
                      <span>{{adv.aHometxt}}</span>
                    </div>
                    <div class="col-md-1">
                        <button class="btn btn-primary" ui-sref="botMenu.advertisedetail({advid:adv.aId})">查看详情</button>
                    </div>
                    <div class="col-md-2">
                      <div class="row" ng-show="adv.aProcess!=1&&adv.aProcess!=2&&adv.aProcess!=4&&adv.aProcess!=7">
                           <div class="col-md-4">
                             <button class="btn btn-info" ng-click="edit(adv)">编辑</button>
                           </div>
                           <div class="col-md-4">
                             <button class="btn btn-danger" ng-click="remove(adv)">删除</button>
                           </div>
                      </div>
                    </div>
                </li>
              </ul>
                 </div>
             </div>
         </div>
        </div>
        <div>
            <div class="text-center">
                <dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)"
                                         template-url="view/pagination/dirPagination.tpl.html"></dir-pagination-controls>
                <div class="pagination">
                    <li ng-class="{ disabled : pagination.current == 1 }">

                    </li>
                </div>
            </div>
        </div>
    </div>
    </div>

<div id="advadd" class="adv_add">
    <div class="adv_add_bac" ng-click="addAdvHide()"></div>
    <div class="market_footer_context">
        <div class="market_footer">
            <div class="hide_adv_add" ng-click="addAdvHide()">
                <span>关闭</span>
            </div>
            <form name="advForm" ng-submit="sure_adv(editAdv)">
                <div class="footer_title">
                    <div class="market_footer_title">广告投放</div>
                </div>
                <div class="market_table">
                    <ul>
                        <li>
                            <span class="market_footer_span">所属类别:</span>
                            <select ng-model="editAdv.aType" class="market_footer_input" >
                                <option ng-repeat="type in aTypeList" value="{{type.num}}">{{type.name}}</option>
                            </select>
                            <!--<span class="market_footer_sp">0/10</span>-->
                        </li>
                        <li>
                            <span class="market_footer_span">名称:</span>
                            <input type="text" ng-model="editAdv.aName" required="" class="market_footer_input">
                            <span class="required market_span" ng-hide="editAdv.aName.length >0">*必填项</span>
                        </li>
                        <li>
                            <span class="market_footer_span">二维码内容:</span>
                            <input type="text" ng-model="editAdv.aUrl" required="" class="market_footer_input"
                                   placeholder="可以是文本、网址等">
                            <span class="required market_span" ng-hide="editAdv.aUrl.length>0">*必填项</span>
                        </li>
                        <li>
                            <span class="market_footer_span">二维码介绍:</span>
                            <input type="text" ng-model="editAdv.aQrcodetxt" required="" maxlength="18"
                                   class="market_footer_input">
                            <span class="required market_span" ng-hide="editAdv.aQrcodetxt.length>0">*必填项</span>
                            <span class="market_footer_sp">{{editAdv.aQrcodetxt.length?editAdv.aQrcodetxt.length:0}}/18</span>
                        </li>
                        <li>
                            <span class="market_footer_span">简介:</span>
                            <input type="text" ng-model="editAdv.aHometxt" required="" maxlength="25"
                                   class="market_footer_input">
                            <span class="required market_span" ng-hide="editAdv.aHometxt.length>0">*必填项</span>
                            <span class="market_footer_sp">{{editAdv.aHometxt.length?editAdv.aHometxt.length:0}}/25</span>
                        </li>
                        <li style="height: 70px">
                            <span class="market_footer_span">详细内容:</span>
                        <textarea style="height: 50px" ng-model="editAdv.aDetailtxt" required="" maxlength="80"
                                  class="market_footer_input"></textarea>
                            <span class="required market_span" ng-hide="editAdv.aDetailtxt.length>0">*必填项</span>
                            <span class="market_footer_sp">{{editAdv.aDetailtxt.length?editAdv.aDetailtxt.length:0}}/80</span>
                        </li>
                    </ul>
                </div>
                <div class="market_button_div">
                    <button type="submit" class="btn btn-success market_button active">确定</button>
                    <button type="button" class="btn btn-success market_button active" style="margin-right: 15px"
                            ng-click="addAdvHide()">取消
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<div id="remove_sure" class="adv_add md-effect-1">
    <div class="adv_add_bac" ng-click="removeHide()"></div>
    <div class="md-modal">
        <div class="md-content">
            <h3>温馨提示</h3>
            <div class="md-content-confirm">
                <p>您确定要删除该条广告？</p>
                <div class="md-btn">
                    <button class="btn btn-warning" ng-click="removeHide()">取消</button>
                    <button class="btn btn-danger" ng-click="sure_remove()">确定</button>
                </div>
            </div>
        </div>
    </div>
</div>